<!DOCTYPE html>
<html lang="en">

<head>

    <!-- Basic -->
    <meta charset="UTF-8" />

    <title>500 Error | Nadhif - Responsive Admin Template</title>

    <!-- Mobile Metas -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

    <!-- Import google fonts -->


    <!-- Favicon and touch icons -->

    <!-- start: CSS file-->

    <!-- Vendor CSS-->
    <link href="./static/admin/assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="./static/admin/assets/vendor/skycons/css/skycons.css" rel="stylesheet" />
    <link href="./static/admin/assets/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" />

    <!-- Plugins CSS-->

    <!-- Theme CSS -->
    <link href="./static/admin/assets/css/jquery.mmenu.css" rel="stylesheet" />

    <!-- Page CSS -->
    <link href="./static/admin/assets/css/style.css" rel="stylesheet" />
    <link href="./static/admin/assets/css/add-ons.min.css" rel="stylesheet" />

    <style>
        footer {
            display: none;
        }
    </style>

    <!-- end: CSS file-->


    <!-- Head Libs -->
    <script src="./static/admin/assets/plugins/modernizr/js/modernizr.js"></script>

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->


</head>

<body>
<!-- Start: Content -->
<div class="container-fluid content">
    <div class="row">
        <!-- Main Page -->
        <div id="content" class="col-sm-12 full">
            <div class="row box-error">
                <div class="col-lg-12 col-md-12 col-xs-12">
                    <div class="text-center">
                        <h1>
                            <?php switch ($code) {?>
                            <?php case 1:?>
                            <h1 >:)</h1>
                            <h2 class="success" ><?php echo(strip_tags($msg));?></h2>
                            <?php break;?>
                            <?php case 0:?>
                            <h1 >:(</h1>
                            <h2 class="error" ><?php echo(strip_tags($msg));?></h2>
                            <?php break;?>
                            <?php } ?>
                        </h1>

                        <a href="javascript: history.go(-1)">
                            <button type="button" class="btn btn-danger"><i class="fa fa-chevron-left"></i> Go Back</button>
                        </a>

                        <p class="jump" >
                            页面自动 <a id="href" href="<?php echo($url);?>">跳转</a> 等待时间： <b id="wait"><?php echo($wait);?></b>
                        </p>
                    </div>
                </div>
            </div>
        </div>
        <!-- End Main Page -->

        <!-- Usage -->

        <!-- End Usage -->

    </div>
</div><!--/container-->


<!-- start: JavaScript-->

<!-- Vendor JS-->
<script src="./static/admin/assets/vendor/js/jquery.min.js"></script>
<script src="./static/admin/assets/vendor/js/jquery-2.1.1.min.js"></script>
<script src="./static/admin/assets/vendor/js/jquery-migrate-1.2.1.min.js"></script>
<script src="./static/admin/assets/vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="./static/admin/assets/vendor/skycons/js/skycons.js"></script>

<!-- Plugins JS-->

<!-- Theme JS -->
<script src="./static/admin/assets/js/jquery.mmenu.min.js"></script>
<script src="./static/admin/assets/js/core.min.js"></script>

<!-- Pages JS -->
<script src="./static/admin/assets/js/pages/page-404.js"></script>

<!-- end: JavaScript-->
<script type="text/javascript">
    (function(){
        var wait = document.getElementById('wait'),
            href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time <= 0) {
                location.href = href;
                clearInterval(interval);
            };
        }, 1000);
    })();
</script>
</body>

</html>